import axios from '@/libs/api.request.js'


export const getSignature = (createTimeStamp,createNonceStr) =>{
  const data = {
    url:location.href.split('#')[0],
    timestamp: createTimeStamp,
    nonce_str: createNonceStr
  }
  return axios.request({
    url: "api/fenxiang/getSignature",
    method: "post",
    data: data,
  })
}



export const getAccessTokenAndJsapi = data =>{
  return axios.request({
    method:"get",
    url: "/api/ceshi/getAccessTokenAndJsapi",
    data: data,
  })
};

